package com.itheima.HomeWork;

import java.util.HashMap;
import java.util.function.BiConsumer;

public class Demo02 {
    public static void main(String[] args) {
        HashMap<String, HashMap<String, String>> School = new HashMap<>();
        HashMap<String,String> workClass=new HashMap<>();
        HashMap<String,String> baseClass=new HashMap<>();

        baseClass.put("001","李晨");
        baseClass.put("002","范冰冰");

        workClass.put("001","马云");
        workClass.put("002","马化腾");

        School.put("Java基础班",baseClass);
        School.put("Java就业班",workClass);

        School.forEach(new BiConsumer<String, HashMap<String, String>>() {
            @Override
            public void accept(String s, HashMap<String, String> stringStringHashMap) {
                System.out.println(s+":");
                stringStringHashMap.forEach((k,v)-> System.out.println(k+":"+v));
            }
        });
    }
}
